<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Cadastro de Concessionaria</title>

	<h:outputStylesheet library="css" name="bootstrap.css" />
	<h:outputStylesheet library="css" name="styles.css" />


	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>
<h:body>

	<div class="linha-top1"></div>
	<div class="linha-top2"></div>
	<div id="wrap">

		<h:commandButton value="voltar" action="index"
			class="btn  btn-ok-azul pull-right span4" />

		<div class="container ">
			<h1>Cadastro de Carro</h1>
			<h:form>

				<h:panelGrid columns="2">


					<h:outputLabel value="Placa:" for="placaCarro" />
					<h:inputText id="placaCarro" value="#{carroBean.carro.placa}" />

					<h:outputLabel value="Concessionaria:" for="concessionariaCarro" />
					<h:selectOneMenu id="concessionariaCarro"
						value="#{carroBean.carro.concessionaria}" class="span2">
						<f:selectItems value="#{carroBean.carro.concessionaria}"
							var="concessionaria" itemValue="#{concessionaria}"
							itemLabel="#{concessionaria.nome}"></f:selectItems>
					</h:selectOneMenu>

					<h:outputLabel value="Fabricante:" for="fabricanteCarro" />
					<h:selectOneMenu id="fabricanteCarro"
						value="#{carroBean.carro.fabricante}" class="span2">
						<f:selectItems value="#{carroBean.carro.fabricante}"
							var="fabricante" itemValue="#{fabricante}"
							itemLabel="#{fabricante.descricao}"></f:selectItems>
					</h:selectOneMenu>


					<h:commandButton value="Inserir" action="#{carroBean.inserir}"
						class="btn btn-ok" />
				</h:panelGrid>
			</h:form>
		</div>
	</div>
</h:body>
</html>